package wang.aweb.childcar.controller.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import wang.aweb.childcar.common.ApiRestResponse;
import wang.aweb.childcar.model.vo.MoneyMealVO;
import wang.aweb.childcar.service.MoneyMealService;

import java.util.List;

@RestController
@RequestMapping("/api/meal/")
public class MealController {
    @Autowired
    private MoneyMealService moneyMealService;
    @PostMapping("getMealList")
    public ApiRestResponse getMealList(){
        List<MoneyMealVO> moneyMealVOList=moneyMealService.getEnableList();
        return ApiRestResponse.success(moneyMealVOList);
    }
}
